#check wifi
import network
wlan_sta = network.WLAN(network.STA_IF)
wlan_sta.isconnected()


import wifimgr
wlan = wifimgr.get_connection()

import micropython
micropython.mem_info()

import sys
sys.path


import oled
oled.show(str(1)+'cm')


from machine import Pin
# GPIO5 (D1) is the internal LED for NodeMCU
led16 = Pin(16, Pin.OUT)
led5 = Pin(5, Pin.OUT)
led5.value(1)
led16.value(1)


import ultrasonic
import bodySensor
import led

import network
sta_if = network.WLAN(network.STA_IF)
sta_if.active(True)
sta_if.scan()
sta_if.connect("chengduxichuang_js", "xichuang123")
sta_if.isconnected()


import wol
wol.create_magic_packet('60-EE-5C-3E-79-1B')

import wol
wol.send_magic_packet('60-EE-5C-3E-79-1B')

import webrepl_setup

import webrepl
webrepl.start()

import utils
print(utils.chip_id())

import os
os.remove("wifi.dat")
os.listdir('/')

import os
os.remove("store.dat")
os.listdir('/')

from configparser import Configparser
c = Configparser()
c.set("ssid","chengduxichuang_js")
c.set("password","xichuang123")
f = open('store.dat', 'r')
print(f.read())

from configparser import Configparser
c = Configparser()
print(c.get("quick_reset", 1))

from configparser import Configparser
c = Configparser()
c.delete("test1")
f = open('store.dat', 'r')
print(f.read())

import os
from configparser import STORE_FILE
os.remove(STORE_FILE)




